package org.homeorganiser.flex.service;

import org.homeorganiser.flex.manager.UserManager;
import org.homeorganiser.flex.vo.LoggedInUser;
import org.homeorganiser.flex.vo.UserDetail;

public class HomeOrganiserService implements IHomeOrganiserService {

	UserManager usrMgr;
	/**
	 * @return the usrMgr
	 */
	public UserManager getUsrMgr() {
		return usrMgr;
	}
	/**
	 * @param usrMgr the usrMgr to set
	 */
	public void setUsrMgr(UserManager usrMgr) {
		this.usrMgr = usrMgr;
	}
	public LoggedInUser logIn(String userName, String password) {
		return usrMgr.checkUserlogin(userName, password);
	}
	public boolean checkUserNameAvailiablity(String userName){
		return usrMgr.checkUserNameAvailiablity(userName);
	}
	public String registerUser(UserDetail usrDetail){
		return usrMgr.registerUser(usrDetail);
	}
	
	
}
